<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Hero War:  Fichier source de C:/Documents and Settings/israhal17/Bureau/devel/HeroWar/include/core/PausableClock.h</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css">
<link href="../../doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.5.8 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="../../index.html"><span>Page&nbsp;principale</span></a></li>
      <li><a href="../../namespaces.html"><span>Espaces&nbsp;de&nbsp;nommage</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="../../files.html"><span>Fichiers</span></a></li>
      <li><a href="../../examples.html"><span>Exemples</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="../../files.html"><span>Liste&nbsp;des&nbsp;fichiers</span></a></li>
    </ul>
  </div>
<h1>C:/Documents and Settings/israhal17/Bureau/devel/HeroWar/include/core/PausableClock.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef PAUSABLECLOCK_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define PAUSABLECLOCK_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;SFML/System.hpp&gt;</span>
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 <span class="keyword">namespace </span>core{
<a name="l00007"></a>00007 
<a name="l00011"></a><a class="code" href="../../db/d43/classcore_1_1_pausable_clock.html">00011</a> <span class="keyword">class </span><a class="code" href="../../db/d43/classcore_1_1_pausable_clock.html" title="Modification de sf::Clock qui permet de mettre le temps en pause.">PausableClock</a> : <span class="keyword">public</span> sf::Clock
<a name="l00012"></a>00012 {
<a name="l00013"></a>00013 <span class="keyword">public</span>:
<a name="l00015"></a>00015         <a class="code" href="../../db/d43/classcore_1_1_pausable_clock.html#b78335d43aecb993d9185829c0c2e58d" title="Initialise le timer et le start.">PausableClock</a>();
<a name="l00017"></a>00017         <span class="keywordtype">void</span> <a class="code" href="../../db/d43/classcore_1_1_pausable_clock.html#ca57df1bcea2464fe6b85a631598baa3" title="Met en pause le timer.">Pause</a>();
<a name="l00019"></a>00019         <span class="keywordtype">void</span> <a class="code" href="../../db/d43/classcore_1_1_pausable_clock.html#9f397884d3ec6fcd2a5056582db84d6f" title="Met en marche le timer.">Play</a>();
<a name="l00021"></a>00021         <span class="keywordtype">bool</span> <a class="code" href="../../db/d43/classcore_1_1_pausable_clock.html#f15d77c1b2853d0a7f207d72f5c12459" title="Change l&amp;#39;état du timer (pause&amp;lt;-&amp;gt;marche).">Toggle</a>();
<a name="l00023"></a>00023         <span class="keywordtype">void</span> <a class="code" href="../../db/d43/classcore_1_1_pausable_clock.html#b0beaea948b1a4c7ad9f8b3645266212" title="Arrete le timer et le remet à zéro.">Stop</a>();
<a name="l00025"></a>00025         <span class="keywordtype">void</span> <a class="code" href="../../db/d43/classcore_1_1_pausable_clock.html#680679fa6245261bafe1b1f62c72001f" title="Remet le timer à zéro et le met en marche.">Reset</a>();
<a name="l00027"></a>00027         <span class="keywordtype">float</span> <a class="code" href="../../db/d43/classcore_1_1_pausable_clock.html#7fe03190e872c4941a1333d158c2f3d2" title="Retourne le temps écouler depuis la dernière fois qu&amp;#39;il à été mis en marche...">GetElapsedTime</a>();
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 <span class="keyword">private</span>:
<a name="l00030"></a>00030         <span class="keywordtype">float</span> m_elapsedTime;
<a name="l00031"></a>00031         <span class="keywordtype">bool</span> m_pause;
<a name="l00032"></a>00032 };
<a name="l00033"></a>00033 
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 }
<a name="l00036"></a>00036 
<a name="l00037"></a>00037 <span class="preprocessor">#endif</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Généré le Wed Feb 4 02:28:38 2009 pour Hero War par&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="../../doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>
